#define _CRT_SECURE_NO_WARNINGS
#pragma once

#define MAX 100
#define name_max 20
#define sex_max 10
#define adress_max 30
#define phone_max 20
#define DEFAULT_SZ 3
#define INC_SZ 2

typedef struct PeoInfo
{
	char name[name_max];
	int age;
	char sex[sex_max];
	char adress[adress_max];
	char phone[phone_max];
}PeoInfo;

typedef struct Contact
{
	PeoInfo* date;
	int sz;

	int capicity;
}Contact;

void InitContact(Contact*pc);


void AddContact(Contact* pc);


void ShowContact(const Contact* pc);


void DelContact(Contact* pc);

void SerchContact(const Contact* pc);

void Check_capacity(Contact* pc);

void Destory_capacity(Contact* pc);

void SaveContact(Contact* pc);

void LoadcContact(Contact* pc);